home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / gnat1792.zip / gnat179b / t-adainc / a-calcon.ads < prev    next >
Text File  |  1994-05-19  |  2KB  |  42 lines

  1. ------------------------------------------------------------------------------
  2. --                                                                          --
  3. --                 GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS               --
  4. --                                                                          --
  5. --                     A D A . C A L E N D A R . C O N V                    --
  6. --                                                                          --
  7. --                                  S p e c                                 --
  8. --                                                                          --
  9. --                             $Revision: 1.4 $                            --
  10. --                                                                          --
  11. --           Copyright (c) 1991,1992,1993, FSU, All Rights Reserved         --
  12. --                                                                          --
  13. --  GNARL is free software; you can redistribute it and/or modify it  under --
  14. --  terms  of  the  GNU  Library General Public License as published by the --
  15. --  Free Software Foundation; either version 2, or  (at  your  option)  any --
  16. --  later  version.   GNARL is distributed in the hope that it will be use- --
  17. --  ful, but but WITHOUT ANY WARRANTY; without even the implied warranty of --
  18. --  MERCHANTABILITY  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Gen- --
  19. --  eral Library Public License for more details.  You should have received --
  20. --  a  copy of the GNU Library General Public License along with GNARL; see --
  21. --  file COPYING. If not, write to the Free Software Foundation,  675  Mass --
  22. --  Ave, Cambridge, MA 02139, USA.                                          --
  23. --                                                                          --
  24. ------------------------------------------------------------------------------
  25.  
  26. --  Provides conversion between calendar.time and Task_Clock.Stimespec
  27.  
  28. with System.Task_Clock;
  29. --  Uses, type Stimespec
  30.  
  31. package Ada.Calendar.Conv is
  32.  
  33.    function Time_To_Stimespec
  34.      (T    : Ada.Calendar.Time)
  35.       return System.Task_Clock.Stimespec;
  36.  
  37.    function Stimespec_To_Time
  38.      (T    : System.Task_Clock.Stimespec)
  39.       return Ada.Calendar.Time;
  40.  
  41. end Ada.Calendar.Conv;
  42.